/*
 * UserInfo.h
 *
 *  Created on: 2014-1-7
 *      Author: root
 */

#ifndef USERINFO_H_
#define USERINFO_H_

#include <pthread.h>

namespace miniGameServer {

class UserInfo {
public:
	UserInfo();
	virtual ~UserInfo();

	int uid;
private:
	static pthread_mutex_t idMutex;
	static int idd;
	static int getNewId();
};

}

#endif /* USERINFO_H_ */
